package game.worlds;

import game.utils.KeybarodTools;
import game.views.FightStateView;

/**
 * 练习场战斗
 */
class PracticeArenaWorld extends Game1V1BaseWorld {
	/**
	 * 重置下一局战斗
	 */
	override function resetNextGame() {
		// 恢复所有血量
		var state:FightStateView = cast this.state;
		state.p1.role.data.hp = state.p1.role.data.maxHp;
		state.p2.role.data.hp = state.p2.role.data.maxHp;
		this.isGameOver = false;
		KeybarodTools.enable = true;
        state.p1.winTimes = 0;
        state.p2.winTimes = 0;
		state.p1.setProgress(1);
		state.p2.setProgress(1);
	}
}
